package com.delivery.www.dao;

import com.delivery.www.po.Dish;

import java.sql.Connection;
import java.util.List;

public interface DishDao {
    //获取店铺下的菜品
    public List<Dish> getDish(int storeId);

    //添加菜品
    public int addDish(String dishName, int storeId, Float price, String describe);

    //修改菜品名
    public int updateDishName(String oldName, String newName);

    //修改菜品价格
    public int updateDishPrice(String oldName, Float price);

    //修改菜品描述
    public int updateDishDescribe(String oldName, String introduce);

    //删除菜品
    public int deleteDish(String name, int storeId);

    //获取某一个菜品
    public Dish getOneDish(int dishId);
}
